package com.demo.factory01.abstractfactory.factory;

import com.demo.factory01.abstractfactory.product.Aircondition;
import com.demo.factory01.abstractfactory.product.AirconditionB;
import com.demo.factory01.abstractfactory.product.Engine;
import com.demo.factory01.abstractfactory.product.EngineB;

//宝马523系列
public class FactoryBMW523 implements AbstractFactory {  
     @Override  
    public Engine createEngine() {
        return new EngineB();
    }  
    @Override  
    public Aircondition createAircondition() {
        return new AirconditionB();
    }  
}
